home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CPPWIN10.ARJ
/
CDLG1.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-25
|
670b
|
42 lines
/***
Test class for testing the CDlg class
***/
#include <windows.h>
#include "menudef.h"
// $HPP:Start
/***
Test class for testing the CDlg class
Header file.
***/
#ifndef CDlg1_INC
#define CDlg1_INC
#include "cdlg.hpp"
class CDlg1 : public CDlg {
public:
BOOL DoCommand(WORD ControlID, LONG lParam);
/*int DoDialog(HANDLE hInst, LPSTR lpDlgName, HWND hParent, LONG lParam);*/
};
#endif
// $HPP:End
BOOL CDlg1 :: DoCommand(WORD ControlID, LONG lParam)
{
switch (ControlID) {
case IDOK:
EndDialog(hDialog, TRUE);
return TRUE;
case IDCANCEL:
EndDialog(hDialog, FALSE);
return TRUE;
}
return FALSE;
}